package data

import (
	"context"
	"grpc-demo/app/grpc-demo-server/internal/biz"
)

type Product struct {}

func NewProductRepo() biz.ProductRepo {
	return &Product{}
}

func (p2 *Product) CreateProduct(ctx context.Context, p *biz.Product) (*biz.Product, error) {
	return &biz.Product{
		Id:          "1",
		Name:        "name",
		Description: "desc",
		Price:       10,
	}, nil
}

func (p2 *Product) GetProduct(ctx context.Context, p *biz.Product) (*biz.Product, error) {
	return &biz.Product{
		Id:          "1",
		Name:        "name",
		Description: "desc",
		Price:       10,
	}, nil
}